<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .box{
            width: 400px;
            line-height: 120px;
            text-align: center;
            background-color: antiquewhite;
            text-align: center;
        }

        .box>span{
            display: inline-block;
            width: 300px;
            line-height: 20px;
            color: lightcoral;
            border: 1px solid black;
            vertical-align: middle;
        }
    </style>
</head>
<body>
    <div class="box">
        <span>
            下面再来说说行高实现多行文本或者图片等替换元 素的垂直居中效果实现。
        </span>
    </div>
</body>
</html>